package util.android.window;

import util.android.AndroidUtil;

import com.androidutil.R;

import android.app.Dialog;

import android.content.Context;
import android.view.View;
import android.widget.LinearLayout;

public class ScrollDialog 
extends Dialog
{
	private final LinearLayout layout;

	public ScrollDialog(Context context) {
		super(context);
		super.setContentView(R.layout.scroll_view);
		layout = (LinearLayout) findViewById(R.id.layoutScroll);
		AndroidUtil.ocultarTeclado(this);
	}

	@Override
	public void setContentView(int layoutResID) {		
		View lyInterior = View.inflate(getContext(), layoutResID, null);
		
		/*
		LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(
				LinearLayout.LayoutParams.MATCH_PARENT, 
				LinearLayout.LayoutParams.WRAP_CONTENT
				);
		*/		
		layout.addView(lyInterior,0);		
		//this.addContentView(ly, params);
		
	}

	public LinearLayout getLayout() {
		return layout;
	}
	
	

}
